﻿@model WorkBasket.Models.FormModel

@{
    ViewBag.Title = "Form Trigger";
}
@section Scripts{

 
<script src="~/Scripts/app/Instance/InstanceController.js"></script> 
}




<h2>@Model.Form.FormName</h2>
<div class="container"  ng-controller="wbInstanceCTRL" ng-cloak>

    
    <div class=" row">
        <div class="col-md-12">
            <nav class="navbar navbar-default" role="navigation">
                <button type="button" class="btn btn-default navbar-btn" ng-click="Submit();"><span title="Submit" class="glyphicon glyphicon-send"></span></button>
                <button type="button" class="btn btn-default navbar-btn" ng-click="Save();"><span title="Save as draft" class="glyphicon glyphicon-floppy-disk"></span></button>
                <button type="button" class="btn btn-default navbar-btn"><span title="Cancel" class="glyphicon glyphicon-remove"></span></button>
            </nav>
        </div>
    </div>
    <div class="row">
        <div class="col-md-12">


            @Html.Raw(Model.GetHTML())


        </div>

    </div>
    <pre>{{InstanceData | json}}</pre>
</div>


